package com.tedu;

import com.tedu.pojo.Student;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

    @RestController
    @RequestMapping("/stu")
    @CrossOrigin(origins ="*")//解决跨域问题的注解
public class StudentController {
    @RequestMapping("/add")
        public Student add(Student s){
        System.out.println(s);
        return s;
    }
}
